setContext for changing context