reaload page using state