added ajax for all actions