Making button for toggling between modes.