Added sorting and pagination on locks and users