removed () from setInterval callback. Now refresh works