Added function to toggle between items

Created function to show/hide items based on completion status. Also
simplified conditional statement in updateCount for more accurate
functionality and less redundancy as well as renaming some functions to
more accurately represent their uses