adds endLeft and endRight event