added partner metabox
minor functions cleanup