move controller into shell.html and add  openRepository()