Dynamically changed background color and button text color when button is clicked