creates custom view, adds gesture detector