Added listeners and default values to view elements