Adds ajax calls on home page changes