Divide project into two parts which custom widget and sample