fixed a small issue where detail would be refreshed when no ID was
selected.
fixed routes