fixed createElement on handler