fixing some important bugs related to profile edit and views
fixing some important bugs related to profile edit and views