Refactor showing of dashboard into functions

Also added skeleton for showing manager dashboard