Justin Bieber wants to build a legacy after the AMAs