The architect , Sinan , strengthened the buttresses and added the other three minarets during the 16th century ; the structure was last renovated in the 1840s .
Sinan also remodeled part of the interior , making it more ornate .