Added interval polling to app
Slight modification to poll