add ajax for user actions