Use href instead of button for "Rebuild index". Otherwise doesn't work for some reason on Linux.