Creating model and data listener