Web ui fixes

ping @mperham 
without the key, the path won't match. So we will never enter this block.