fix bug so app polls on coming from background