removing deprecated code and adding exceptionhandling
added DrawerLayout; still uncomplete