main page styling refactor