Setting events for accordion