Added mouse listener and index from click methods