added some hidden rules and vertical centering