interface within interface

 when I click on reject it should pop up the below screen (comments) and hide the above form with buttons (cancel/approve/reject)

and when I click on cancel for this 2nd interface , I need to get 1st interface again with  3 buttons hiding the comment form(above form)

Can someone help me with the code please

  Discussion posts and replies are publicly visible