modify view Index

added javaScript to layout
added  another class to css
after merge