created MVC for gadgets