Profile page "x" to close, no view

Currently, it is setup as part of a view but I don’t want it to be part of the nav and I want it to set up its own view which I can do.

What I can’t do it make it close differently. So no matter where you are in the app when you hit the profile page I want it to come up and then users will be able to go places from there, but I can’t figure out how to add an ‘X’ to return or close the profile view. I am using tabs which work fine but I need to the profile to be accessible from any one of those tabs and once the user clicks the X just hide the profile view again. But I can’t seem to figure out how to add the ‘x’ to just the profile page and not the following pages.

image