Modify main view layout, fix bugs, add styles.css