Fix open/close menu bug in application&index controllers; chmodify loading templates