renamed method
new logic
styled index page