update to send ui and handle range and button events