relocates grid logic from app to work view