change habtm relation to has_many through, add counter_cache notes_count, change subject menu design