Add panGesture function
Add CustomView