testing controller
migrate to angular