Fix project edit pages for error handling and layout