added topnav and updated app delegate