simpler code , no storyboard