initialization activity before main activity