moving from views to mapapp