toggle between showing edit states