refactored code for dashboard show... moved duplicated code to wager model