working button library and main code for message choice functionality