integrated joy's inputParser and relevant changes to UIView and
UIMiddleLayer