update css, type, layout, add swipe support