improved context sidebar generation; removed outdated generator parts