demo works with code
demo works in both directions, view.php finished