Changed some commands and took the actionlistener out of the editor