moved some code to views and controllers
modified Emacs.txt