changed location of disable button statement