save button stores selected gender in patient object