added swipe gesture for changing between fragments