Only set needs condirmation message for non xhr request