added widget Controller with an example