refactored patients/new and edit