made basic dashboard functionalities for admin