added more controls and a preview window