Removes unnecessary panelcontroller after to move into a directive that logic