Improved back button functionality when navigation panel open

Modified functionality of back button to close navigation panel when active instead of navigating back or existing the application to resolve #85