update Reveal. Clean up layout code.