renamed some files added functions and buttons for drawing