add button border,add functiont to check button available