fixed dissappearing views issue and modified url updating