error handling and added more option in default gadget .