changeMode function
improve buttons