Front-end and Back-end Implementation of multiple insert & Fixed Closing of diag for Settings