fixed create and createUI functions for UDP