Fixed clickable areas to work better with rectangles and added ability to specify internal command as command for clickable area