Fixed z-index on magnify windows and error handling in calculator