added edit aware submit button show/hide behaviour