added controller for linked list operations