put js and view in different files
put js and view in different files