working on refresh behavior