added button disable functionality