init and add custom view demo