Added menu directive and removed maincontroller.