some changes to style and implmented swiping