Added update index action, ajax