Simply put, your user interface level only applies to the user interface and interacts with the next level down (perhaps your business level). Your business layer and data layer (and any other layers you have) should never have any user interface code, because this is the definition of user interface layers.
Think about how a web browser works, the browser is a user interface layer and relates to the rendering of your page and nothing else. When something needs to happen, it makes a request to the web server (next level) to do this, and then displays the results.
Try using Google for some well-known user interface patterns:
MVC MVP Humble Dialog Box
source share