working on mvc structure