removing setMainWindow as method does not exist