add update, destroy methods, ajax for index page