Added logic for GcdFragment; fixed minor layout & logic bugs