simplify switchview and onclick event
Merge branch 'master' of https://github.com/github-tn/ToDo-AJAX