Changed rendering part

Changed controls that are rendered per type. Added listeners to the
controls. New expression visitor created that returns type of
expressions.