problem with refreshing page