Add edit functionality for rankings