logic for rendering dashboard added