add root scope function
fix bug
change style