admin functionality partly done