moved slider event handling and ajax updating to angularjs