Fixed some interaction bugs with the editor UI