index styled and hooked up to proper logic