init app framework