Added failsafe for buttons when list item are not selected.