fixed ribbon index reference and added events