Update main-controller.js

block for "close" button for right panel