General ajax action processing