add chords
seperate interface logic from the main file