edit code in def create_note in class mainapp