delete main() from window.cpp and add main.cpp"