refactored dashboard show and sessions controller