Add window and application base class