extracted width and height into scope value and changed init of it
resize feature for widget in frontend
resize widget is now synct with backend
removed unused variables and console.log