added last display direction in user input