added answer button logic