Want one part of hinge to move but not other. Either isn't working!

Hi folks

This is probably such a simple problem but I'm having trouble with this assembly where I want my hinge to stay in pace but for it to function how a hinge should. I am using the move component key to try and close the door but when I do the wholedoor with hinges attached moves instead of the door swinging in place like how a door would. You can see in my photos in the first photo where I want it to be, and in the second where it ends up after using the move tool. How can I make this work?

SolidworksAssemblies