Visual Logic in User Interface Design