refactored pie view so we can display pies from home and bake tabs.