fixing error handling for installApp
enhancing error handling in install app
preventing select menu if only one option