Code refactoring as per comments.
Added style list for link list.