cleand project and added function for custom apps