It eliminates the six-month rotating European Union presidency , creating a president with a maximum five-year term ; details a list of basic rights ; and determines what functions , such as issuing visas or making rules on immigration , will be governed by the European Union headquarters in Brussels and what others , like foreign policy and defense , will remain with member states .