adding import window and getResource