creating dashboard view and controller