clean up main app