Plans to replace Mental Health Act