bunch of misc fixes, start to add controls to file editor