code cleanup, fixing vb minimize.