Add a angular script for frontend
Add 2 APIs to control