adding mvc desing pattern