init app and controllers