Remove homescreen api and windowmanager api depependency