Split and added UI button/checkbox functionality.