painting view area issue fixed