fixed npe when there is no element selected in the model view and then you return back
fixed #457 permalink to catalogue element