made dashboard into a view