metadata working in server and ui