clear logs when refresh page