correct prototype for ui text pick function