chaiwat update function selected