Made button for settings, fixed indexing bug in notes