Remove the polling function instead have option listen to resize as well