fix angular controller issue when deployed to tomcat