added insert, update delete functionality to admin