Adding confirmation dialog in interaction with main menu. #246