adds initial window class and utility functions