Resolved angular controller issue, needs to be properly implemented