Added some error handling. Added a selection setting view to plugin settings window.