added code for better swipe tabs and data graph animation