unix timestamp and resetViews function