update defaults

add initialize and render fn in the view