robustisising the app, catching errors instead of letting app crash :)