refresh is now correctly handled on mainpage