listen window's 'resize' event
add three buttons and bind their click event