Cleaned up warnings. Added viewLotteries back.