connected backend and frontend, clean up

-the position of items in the forest is now correctly saved in the db
-calling finish in the app now works correctly
-code clean up