added javascript, updated main page style and layout