There are several problems resulting from the current code, mainly, because the way that everything is refreshed is not clear. We must: - [ ] store the selection at a given stage (which patterns by number) - [ ] make sure that the refreshing operation works seemlessly - [ ] use get_patterns at almost all stages