seperate painter and painterview

Signed-off-by: wenpincui <wenpincui224@gmail.com>