First you need to install
sudo apt-get install dconf-tools
dconf and navigate to:
org -> pantheon -> desktop -> gala -> appearance
close,minimize,maximize: depending on whether or not to want to keep the maximize button on the right.
If you want to move the buttons to the right, like in Gnome or KDE, change the value of