changed #ui from hidden by default to visibility:hidden so height is still available