added hot or cold logic
added input button