extract search box into separate view