Setting visibility of retry button correctly