added styles and functionality for list