Disable the first/last move-up/move-down buttons as appropriate