Moved charts js scripts to open only when necessary, updated the gems, fixed maintenances edit modal