updates layout and adds admin functionality