cleaned up renderContext; implement stack-based active component management