following index functional with ajax, following done with ajax