Proceeding with the implementation of the button logic