fixed bug

added a function that unlocks the mouse when a new state is activated
made editor state toolbox more compact