Fixed some dialog issues and made main menu