darkly: clean up modal and breadcrumb code, fixes #262