fix showing swipe menu. Add interface for fragment logic.