Create me a UI profile system

I am working on a profile system in which I have:

  • a parent interface
  • a profile image on the top
  • a Button after that
  • a Text Field below the button

When I click on the Button I want that:

  • a child interface or GameObject become active
  • on which there is a list of images and after the list there is button when i select any image from child interface and press the button on child interface the selected image is changed with main image of parent interface and the child interface deactivated.

I need a script to do this task.