Added events to JS and added attributes to HomeControllers methods