misc changes - virtual end method, static instance of Session, and GetElement only returns displayed