moved initStep to directive