updates tool controller for ajax