still working on separting the windows (slow as I learn Javascript...)