Added priority filter to notes controller.