Remove unnecessary lines in leftPanel directive