added timestamp and delete on lead
added logic for pagination