Enable setting custom view

fix #27