Page not loading properly when editing a form