Make MapItems ui-independent