Added back button action to close sliding pane if opened.