fixes for editing views and templates