update dialog, frame.js

1. add alert, confirm, spinner dialog draftcode
2. add category list, new page