adding controls automatically
moved serial  stuff to dialog, added play and stop buttons, made chart tab first tab