styling on index and click handler