check if it is an ajax request in bootstrap