Handle resize event

* Enabled all polling
Merge pull request #39 from bvssvni/master

Handle resize event