changed element display to visibility