Made navigate named function in new and edit controllers