add screen resize behavior