multiple actions into one, uses jquery.data for storage