I figured out that restart and main menu buttons are not working in the export build when godot editor is open, so if u are godot dev, close the editor and run my game