fixed typo in datasource
added condition to initialize button