move menu context from template to json