updating the mvc and fixing it - fix some of the functions and add new