init perference for settings
init and add custom view demo