fixed bugs in notes grid