Added converter and linked with UI

Check main.cpp
also check generate() function in MainWindow.cpp