functioning admin edit