tidying up dashboard controller