Implemented toggling of the Profile and Edit view