avoided refreshpage