Separate views from logic.