Added code to main

opens window with text