Added bounds specification to UI invalidate().
Gonna refactor layout code again.
Reworking UI.