Refactored Graphic Activity