change layout index after signed in