add style and initial draw function