refactor to move contact app definition and main region definition to separate file.