MOD: decide between AJAX and normal POST handle