implement context panel