Added setActive Method To Context

Sets the context to either active or inactive.