updated layout plus started code for equations