Added possibility to pass functions for each element of the unordered list