added xhr check in decorator.rb to avoid calling the decorator during an AJAX call