refactored and added dependecies,index and css