consolidating context nav code for gantt charts