added todos some debugging, possible window not showing fix in the library