draggable history cards and logic checking for empty activites