changed logic so that remote record buttons only do ajax calls when clicked