Removed some DRY code.

Now code can be easily expanded in future by only adding new widget name to widgets array.