Make the swipe panel more object based.