moved methods from add, edit, and support methods from gallyer to admin