Fixed controller guard paths and automated everything with guard