updating the main app