improved past_logs nil/empty checks; added edit and delete icons