Added gradient view code