added functionality for new and List Buttons