Please read the articles on our Parrot Training page for help in training your bird.
It takes time and much patience, but if you spend time learning what your bird does and does not like, what it's body language is trying to communicate to you, then you will be able to teach your bird alternative behaviors to replace the ones you don't want.