add error and perfect style

add the arrow to the main page and auto adjust the style when window
resize