added dashbard and admin functionality