nishi, angshu | #1183 | updated navigation controller and index file to show the correct tab selected and also on refresh. refactored code.