the whole app code