added dynamic windows

Lots of changes, added dynamic windows
Added nav
Added close windows