I have modified codes for getting better UI/UX. There is no dialog by clicking on a menu button instead, there will be a slide menu from the left of the screen.