Changed resource create function in UI