add settings dialog and include libs