add event handlers to home.js
adding animations and transitions