Added id's to buttons and query to grab timestamps.