first version of the modal popup

which has to be rewritten soon