A bug fixed on counting notes
some UI improvements