Add setOptions function to Widget
Refactor adstract controller and add layout function
Separate config file