[Fix #44]  Better mobile UI

You'll need to move the declaration of the `_attach_cancel` function below the declaration of the `_close_modal`