implement selection of location in portlet

fixes #15