change admin php with new constructor and methods