built basic mvc/ajax structure