adds default when view is created programmatically