polish view code