Connecting model to webapp.