added templating to dynamically display li, ArrayController