added refresh code
Merge pull request #133 from jhaybie/finalTouches

added refresh code