commit button testing code