clear bar before refresh