moving stuff from model to view