log and reload page