Formatted some code, removed refresh
Formatted code