Overridden setDelegate method.
Added missing delegate and datasource methods.