Implemented "Apply changes" button (issue #141)