added public commonInit method