prevent the user from double clicking a GUI button

also, improve comments