[Main] Add GUI for settings, fix some bugs, add form sources