Created display logic

Tom there are bugs with commitSwipe()