fix submit button show/hide on gaps