* added better button handling in the UI example