cleaned up home controller
refactored event code
tests