change some controller function to window function
add element
fixed a bug
Merge branch 'feature'