this was code borrowed from the related content container. I'll be working commercial components over the next few days so this will change