removed javascript and css from view and made css file