added function to set popupmenu and function to define list of coordinate systems