Fixed Max/Mini for cedits form + old code from op