Added functions to enable buttons only after the user have selected the necessary options from the spinner.