implement `top` and `random` url commands