fixed favorites issue for both department and directory..seems a bit hacky tho still