made changes to the new gradle update and the custom view