openDrawer () method to add a delay to make UI smooth