added direction to gradient view