dashboard view logic