changed float to double in main menu for better performace