Setting click events for accordion