mvc structure

still a lot of debugging to do