Fixed handling of absolutely positioned masks
remove unnecessary click handler
distinguish between checkbox and radio inputs
handle radio inputs properly