added logic for display of icon and click behaviour