many fixes and improvements

minor refatoring of controller and services
adding a loading bar for infinite scrolling
updating analytics