Separate views from model