code cleanup and adding text in graphics view