init app in index