refactor windows store app