working on modal logic, to be ajaxified and have content