Update code for view
Add some function to manualy set view directory and layout directory