Remove UI related function from library