fixed second button loading problem on index