edit index markup
add search input detection