added UI Manager, creating PDF and improving DrawingPanel