Added ajax update interval funcitonalty