implement new navigation history function to app