added a check on ajax request to change to colspan