Added listener and removed static variables.
Made fullscreen.