Adding back button and modal dialog