cleaning up context for shared views