Some refactoring, added days as a model instead of integer. Start of adding the editview.