Removed code from new and edit views and created form partial