Adding custom widget and modifying some files to work correctly whit the ned widget