Finish detail and mainmenu.