failed to apply mvc pattern, revisit later