Added callback for elements first and last in list