proper layout and proper response to swipe(left/right) event