fix to update total when selecting item through mouse click