added graphics and added form controls