Continue completing manage page
Use JSON function instead of hard code to handle special character better.
Fix some bugs.