Implement display modes and UI event handling