add square bg and modify the render method