Moved common UI primitives into a shell library