added admin layout and some functionality