added basic error handling and tested widget edit menu