added javascript to update student action count without refreshing