fix layout on refresh