now properly send type id to server, fixed server side ui