add a can_preshow interface in lua