Changed button hiding behaviour for index.html