javascript fixes for Edit view, layout fixes for Create view