Add ajax submission for favorites work