adapt mobilePOS to mvc pattern